-- GENERATED SPELL FOR [Deranged Explorer] --


function spell0_23967(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23967', 30289, 1)
end

function spell1_23967(pUnit, Event) --@Torch,n/a--
pUnit:FullCastSpellOnTarget(35857,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23967', 636, 1)
end

function Sorts_23967(pUnit, Event)
local choix_sorts_23967 = math.random(0, 1)
if choix_sorts_23967 == 0 then
pUnit:RegisterEvent('spell0_23967', 1, 1)
end
if choix_sorts_23967 == 1 then
pUnit:RegisterEvent('spell1_23967', 1, 1)
end
end

function mob23967_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23967', math.random(1500, 3000), 1)
end

function mob23967_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23967_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23967_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23967, 1, 'mob23967_Action')
RegisterUnitEvent(23967, 2, 'mob23967_Leave')
RegisterUnitEvent(23967, 3, 'mob23967_Kill')
RegisterUnitEvent(23967, 4, 'mob23967_Die')
